﻿using System;
using Sinacor.Infra.Core.ProcessManager.Client;
using PSE.ProcessManager.Common.Gateway;
using PSE.ProcessManager.Common.Process;

namespace Sinacor.Process.Bovespa.Casamento.Client
{
    /// <summary>
    /// CasamentoAutomaticoPreBoleto
    /// </summary>
    [Serializable]
    public class CasamentoAutomaticoPreBoleto : SinacorBaseProcessClient
    {
        #region Construtor
        /// <summary>
        /// Construtor
        /// </summary>
        public CasamentoAutomaticoPreBoleto()
        {
            this.Id = 18;
        }
        #endregion Construtor

        #region Execute
        /// <summary>
        /// Execute
        /// </summary>
        public void Execute()
        {
            Message message = new Message();
            message.MessageId = 518;
            message.ProcessId = this.Id;
            message.Operation = "Execute";
            message.From = "Execute";
            this.BeginSendMessage(message);
        }
        #endregion Execute
    }
}
